package com.mask.im.business.controller;
import com.mask.im.business.model.dto.MessageDTO;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.service.MessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(tags = "信息通知模块")
@RestController
public class MessageController {

	@Autowired
	private MessageService messageService;

	@ApiOperation("获取信息通知内容")
	@GetMapping("/users/getMessage")
	public RestResponse<List<MessageDTO>> getUserMessage(){
		return messageService.getUserMessage();
	}

}

